package test.server;

import org.je.cons.ClassPath;
import org.je.io.file.FileReader;
import org.je.log.JLog;

import com.fyf.game.net.business.server.ServerReceiveHandler;
import com.fyf.game.net.serui.ServerUI;
import com.fyf.game.net.server.MessageServer;

public class MsgSer
{
	public static void main(String[] args) {
		JLog.out(ClassPath.get());
		String s = FileReader.read2utf8(ClassPath.get() + "/port.txt");
		int port = Integer.parseInt(s.trim());
		JLog.info("服务启动：port：" + port);
		MessageServer ser = new MessageServer(port,new ServerReceiveHandler());
		new ServerUI(ser).startServer();
	}
}
